package com.wei.frame.contract;

import androidx.annotation.Nullable;

import com.wei.frame.bean.BaseBean;
import com.wei.frame.bean.NewsBean;
import com.wei.frame.mvp.IModel;
import com.wei.frame.mvp.IView;

import java.util.List;

import io.reactivex.rxjava3.core.Single;

/**
 * 作者:赵若位
 * 时间:2021/6/30 15:43
 * 功能:
 */
public interface SplashContract extends BaseContract {

    interface View extends IView {
        void onShowNewsData(@Nullable List<NewsBean> list);
    }

    interface Model extends IModel {
        Single<BaseBean<List<NewsBean>>> getNewsData(@Nullable String type);
    }
}
